<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>


<head>
<link rel="stylesheet" type="text/css" href="./css/music.css"></link>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style>
* {
	border: 1;
}
</style>
<title>蓝调吉他社吉他小店</title>
<script type="text/javascript">
<!--
	function fsubmit() {
		if (searchForm.rcond[0].checked) {
			searchForm.action = "showallgoods.do?cond=all";
		} else if (searchForm.rcond[1].checked) {

			searchForm.action = "showallgoods.do?cond=precision";
		} else {
			searchForm.action = "showallgoods.do?cond=keyword";
		}
	}

	function hideall() {
		if (searchForm.rcond[0].checked) {
			pre.style.display = "none";
			key.style.display = "none";
		}
	}
	function showpre() {
		if (searchForm.rcond[1].checked) {
			pre.style.display = "";
			key.style.display = "none";
		} else {
			pre.style.display = "none";
		}
	}
	function showkey() {
		if (searchForm.rcond[2].checked) {
			key.style.display = "";
			pre.style.display = "none";
		} else {
			key.style.display = "none";
		}
	}
//-->
</script>
</head>
<body>
	<div id="wrapper">
		<jsp:include page="./header.jsp"></jsp:include>
		<div id="address">
			<a>当前位置： 吉他小店</a>
		</div>
		<div id="box" align="center">
			<div class="box_shopcart"><a href="checklist.do?getb=/checklist.do"><font color="red">查看购物记录</font></a></div>
			<form name="searchForm" action="" method="post" onclick="fsubmit()">
				<div class="box_all"><input type="radio" name="rcond" onclick="hideall()">查看所有</div>
				<div class="box_all"><input type="radio" name="rcond" onclick="showpre()">精确搜索</div>
				<div class="table">
					<table id=pre style="display: none;">
						<tr>
							<td>名&nbsp;&nbsp;称:<input type="text" name="title" size="17"></td>
							<td>地&nbsp;&nbsp;址:<input type="text" name="address" size="17"></td>
							<td>厂&nbsp;&nbsp;商:<input type="text" name="manufacturers" size="17"></td>
							<td>价&nbsp;&nbsp;格:<input type="text" name="price" size="17"></td>
						</tr>
					</table>
				</div>
				<div class="box_all"><input type="radio" name="rcond" onclick="showkey()">关键字搜索</div>
				<div class="table">
					<table id=key style="display: none;">
						<tr>
							<td width="60">关键字:</td>
							<td><input type="text" name="keyword"></td>
						</tr>
					</table>
				</div>
				<p>
					<input type="submit"
						value="搜索"><input type="reset" value="重新输入"> 
			</form>
		</div>
	</div>
</body>
</html>
